package com.corelib;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.orhanobut.logger.Logger;

import butterknife.ButterKnife;

/**
 * Created by lenovo on 2016/12/27.
 */
public abstract class BaseActivity extends AppCompatActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(inflateLayoutId());
        ButterKnife.bind(this);
        initViews(savedInstanceState);
    }
    protected abstract int inflateLayoutId();

    protected abstract void initViews(Bundle savedInstanceState);
}
